from typing import List


from pydantic import BaseModel






class ErrSignal(BaseModel):
    task_name: str = ''
    task_tag: str = 'nothing'
    err_date: str = "nothing"
    judge: str = "0"
    # type_name: str = "client_api_fail"



class err2dir(BaseModel):
    err_type_name: str = ''
    one_id: str = ''
    type_name: str = ''
    batch: str = ''


class ServerGetExcept(BaseModel):
    err_type_name: str = ''
    ids: str = ''
    batch: str = ''

class ClientGetFail(BaseModel):
    err_type_name: str = ''
    ids: str = ''
    err_str: str = ''
    batch: str = ''
    name_counts: str = ''

class ServerGetExceptSqlTypeName(BaseModel):
    type_name: str = ''

class ServerGetExceptSqlBatch(BaseModel):
    batchs: str = ''

class ServerGetExceptSqlId(BaseModel):
    ids: str = ''

class CountPost(BaseModel):
    page_counts: int = 0
    counts: int = 10



class DelFromMongo(BaseModel):
    key_name: str = ''
    value_name: str = ''
    database: str = ''
    # stat: 0 表示删除全部, 1表示只删除stat为1 即已被处理过的 默认为1
    stat: str = "1"
    # like: 0 表示删除元素为完全匹配, 1表示删除元素为包含在内
    like: str = "0"
    # err_time_type  0表示默认不以时间为触发时间进行删除  1 表示方式以 , 进行切割并以此进行循环, 2表示时间区间
    err_time_type: str = '0'
    err_time: str = ''